package org.jeecg.modules.car.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.entity.basedata.BaseFloor;
import org.jeecg.entity.basedata.BaseRoom;
import org.jeecg.entity.car.CarInfo;

import java.util.List;

/**
 * @Description: 月卡车列表
 * @Author: jeecg-boot
 * @Date:   2019-07-10
 * @Version: V1.0
 */
public interface ICarInfoService extends IService<CarInfo> {

    List<CarInfo> findPage(Page<CarInfo> page, CarInfo carInfo);

    void updateCheckStatus(CarInfo carInfo);

    CarInfo selectByCarPortId(String carPortId);


    public BaseRoom getRoomByRoomNameCusName(String floorId, String roomName, String cusName);

    public BaseRoom getRoomByRoomNameTent(String floorId, String roomName, String tentName);

    public BaseRoom getRoomByProjectFloorRoomName(BaseRoom baseRoom);

    public BaseFloor getFloorByName(String floorName, String projectId);

    void updateFeeDate(CarInfo carInfo);

    CarInfo getByCarNo(String plateNumber,String parkId);

    CarInfo getByCarId(String id);

    List<CarInfo> findByIds(List<String> carIdList);

    List<CarInfo> findByIds();

    void updateSyncStatus(String id);

    Integer getCountByRuleId(String ruleId);

    List<CarInfo> getAllOrderCarList(String templateType);

    List<CarInfo> getByCarPortId(String carPortId);

    List<CarInfo> getMonthCarNo(String parkId, String tenantId, List<String> carNoIds);

    void updateIsExist(String id,String tenantId, Integer isExit);

    List<CarInfo> findByParkId(String parkId);
}
